package cn.kgc.jdktest.demo1;

/**
 * @Author:yaozhaobao
 * @Description:TODO
 * @version:1.0
 */
public class MyRunnable  implements  Runnable{

    @Override
    public void run() {
        //3-将要执行的代码放到run方法中
        for(int i = 1;i<=100;i++){
            System.out.println(Thread.currentThread().getName()+":"+i);
        } 
    }
}
